<h3>修改我的账号信息</h3>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
  <%= devise_error_messages! %>

  <p><%= f.label :email, '邮箱' %><br />
    <%= f.email_field :email %></p>

  <p><%= f.label :password, '密码' %> <br />
    <%= f.password_field :password %></p>

  <p><%= f.label :password_confirmation, '确认密码' %><br />
    <%= f.password_field :password_confirmation %></p>

  <p><%= f.label :current_password, '当前密码' %> <b>(我们需要您的当前密码来确认此次修改)</b><br />
    <%= f.password_field :current_password %></p>

  <p><%= f.submit "更新" %></p>
<% end %>

<hr/>

<h3>注销</h3>

<p>不开心？ <%= link_to "注销我的账号", registration_path(resource_name), :confirm => "您确定要注销吗？", :method => :delete %>.</p>

<%= link_to "返回", :back %>
